package models;

import play.db.jpa.GenericModel;

import javax.persistence.*;
/**
 * Created with IntelliJ IDEA.
 * User: JL
 * Date: 25/06/12
 * Time: 03:38 PM
 * To change this template use File | Settings | File Templates.
 */
@Entity(name = "hidvariablemodelohidrologico")
public class Hidvariablemodelohidrologico extends GenericModel{

    @Id
    @SequenceGenerator(name="hidvariablemodelohidrologico_seq", sequenceName="hidvariablemodelohidrologico_varmodhidid_seq", allocationSize=0)
    @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="hidvariablemodelohidrologico_seq")
    private int varmodhidid;

    @ManyToOne
    @JoinColumn(name = "univarid")
    private Hidunidadvariable hidunidadvariable;

    @ManyToOne
    @JoinColumn(name = "modhidid")
    private Hidmodelohidrologico hidmodelohidrologico;

    private String varmodhidnom;
    private String varmodhiddesc;

    public Hidvariablemodelohidrologico() {
    }


    public Hidvariablemodelohidrologico(int varmodhidid, String varmodhidnom) {
        this.varmodhidid = varmodhidid;
        this.varmodhidnom = varmodhidnom;
    }

    public Hidvariablemodelohidrologico(int varmodhidid, Hidunidadvariable hidunidadvariable, Hidmodelohidrologico hidmodelohidrologico, String varmodhidnom, String varmodhiddesc) {
        this.varmodhidid = varmodhidid;
        this.hidunidadvariable = hidunidadvariable;
        this.hidmodelohidrologico = hidmodelohidrologico;
        this.varmodhidnom = varmodhidnom;
        this.varmodhiddesc = varmodhiddesc;
    }

    public int getVarmodhidid() {
        return this.varmodhidid;
    }

    public void setVarmodhidid(int varmodhidid) {
        this.varmodhidid = varmodhidid;
    }
    public Hidunidadvariable getHidunidadvariable() {
        return this.hidunidadvariable;
    }

    public void setHidunidadvariable(Hidunidadvariable hidunidadvariable) {
        this.hidunidadvariable = hidunidadvariable;
    }

    public String getVarmodhidnom() {
        return this.varmodhidnom;
    }

    public void setVarmodhidnom(String varmodhidnom) {
        this.varmodhidnom = varmodhidnom;
    }
    public String getVarmodhiddesc() {
        return this.varmodhiddesc;
    }

    public void setVarmodhiddesc(String varmodhiddesc) {
        this.varmodhiddesc = varmodhiddesc;
    }

    public Hidmodelohidrologico getHidmodelohidrologico() {
        return hidmodelohidrologico;
    }

    public void setHidmodelohidrologico(Hidmodelohidrologico hidmodelohidrologico) {
        this.hidmodelohidrologico = hidmodelohidrologico;
    }
}
